import element.synt.CompUnit;
import intermediate_representation.InterRP;
import table.InterCodeTable;

import java.util.ArrayList;

public class MediateCode {
    private CompUnit compUnit;

    public MediateCode(CompUnit compUnit) {
        this.compUnit = compUnit;
    }

    public void execute() {
        compUnit.tointerRP();
    }

    public ArrayList<InterRP> getInterCode() {
        return InterCodeTable.interCode;
    }
}
